Learn about global temporary table oracle 11g performance, we have the largest and most updated global temporary table oracle 11g performance information on alibabacloud.com
ROWIDINSERT INTO Session_temp_tab SELECT * from EMP;INSERT INTO Transaction_temp_tab SELECT * from EMP;Sql> Select COUNT (*) from Session_temp_tab;COUNT (*)----------14Sql> Select COUNT (*) from Transaction_temp_tab;COUNT (*)----------14Sql> commit;Commit CompleteSql> Select COUNT (*) from Session_temp_tab;COUNT (*)----------14Sql> Select COUNT (*) from Transaction_temp_tab;COUNT (*)----------0When the data in the transaction level temporary
1. Create an Oracle global temporary table. The Code is as follows: SQL code DECLAREcntint; begin -- if the temporary table exists, delete SELECTcount (
1. Create an Oracle
1. Create an Oracle global temporary table. The Code is as follows:SQL code
DECLARECntInt;
Begin
-- If the temporary table exists, delete it.
SELECTCount(1)IntoCntFromUser_tablesWhereTable_name ='Templogsmshall _ session';
I
-----------------------------------------------------------------------Total 3 0.80 0.81 0 32461 0 156
3. analyze the problem. The first thought is whether there is a problem with the SQL logic. Unfortunately, the execution plan is not traced in 10046. However, when reading the logic, the slow one should produce a Cartesian product. After a simple check, there is no problem with the SQL logic, and people's first feeling is not necessarily reliable.
4. I was wondering what led to inaccurate execu
feeling is that the SQL logic is not a problem, but 10046 inside no trace to run the plan, just read the logical reading, the slow one should be produced Cartesian product. After a simple check, SQL logic does not have a problem, people's first feeling is not necessarily reliable.4. I was wondering what led to the operation of the plan is not allowed, suddenly think of rel_oid_classify is the global temporary
-----------------------------------------------------------------------Total 3 0.80 0.81 0 32461 0 156
3. analyze the problem. The first thought is whether there is a problem with the SQL logic. Unfortunately, the execution plan is not traced in 10046. However, when reading the logic, the slow one should produce a Cartesian product. After a simple check, there is no problem with the SQL logic, and people's first feeling is not necessarily reliable.
4. I was wondering what led to inaccurate execu
Some databases are in use because some operations will lead to a temporary table space is too large, due to the working mechanism of temporary table space, the temporary table space will not be released after the job is completed.
When sorting, grouping, and indexing are done in an Oracle database, a lot of temporary data is generated. If you have a table of employee information, the database is the time to set up records to save. If a user queries by using the ORDER by sort statement to specify the sort by employee number, all the records that are created after sorting are
. Sort_no from Gg_classify_techparam DCT, Gg_techparamGG, Gg_classify D, rel_oid_classify T WHERE DCT. techparam_id = Gg.id andd.id = DCT. classify_id and t.classify_id = d.id; To the developer, modify the relevant function. After multiple tests, the problem is resolved. It was almost 7 o'clock, and it was already bright, and I felt a little sleepy, but could not sleep again.Personal experience of this event summary: For this temporary
Oracle Database 11g performance optimization strategy-optimizing Table PerformanceIntroduction 1-1 Create a database with optimal performance problem description www.2cto.com you realize that when you first create a database, there are some attributes (if enabled) it will ha
area, SQL SERVER Automatically releases the global temporary table.
5 because ORACLE is not a database in memory. therefore, if ORACLE frequently creates and deletes temporary tables like SQL SERVER, the
Temporary tables are divided into:Local temporary table, limited to the current visitor access, the creation method goes as follows:CREATE table #TableName (table structure)stored in database tempdb (hard disk), current user disconnects (put current), automatically deletedIf
generate redo statements, which improves the performance of data operations.
Temporary tables do not produce locks and waits.
The experiment is as follows:1. on commit delete rows: A transaction-based temporary table. The data in the temporary
Although we often use temporary tables in daily database development and maintenance, we may still have a poor understanding of temporary tables.
I found a good post on the Internet today to share with you.
Source: http://www.matrix.org.cn/thread.shtml? Topicid = 31492 forumid = 36
In Oracle8i or a later version, you can create two types of temporary tables:1.
The temporary table of Oracle only exists in a session or transaction lifecycle. The data in the temporary table is only visible to the current session.
When the session exits or the user commits a commit or rollback transaction, the data in the
Temporary table, oracle temporary tableTemporary tables allow users to operate only their own data without interfering with each other, so they do not have to worry about damaging or affecting data of other sessions/transactions. Temporary tables can be divided into SESSION
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.